-- GENERATED SPELL FOR [Razaani Nexus Stalker] --


function spell0_20609(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(11975,pUnit)
pUnit:RegisterEvent('Sorts_20609', 1500, 1)
end

function spell1_20609(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20609', 8259, 1)
end

function Sorts_20609(pUnit, Event)
local choix_sorts_20609 = math.random(0, 1)
if choix_sorts_20609 == 0 then
pUnit:RegisterEvent('spell0_20609', 1, 1)
end
if choix_sorts_20609 == 1 then
pUnit:RegisterEvent('spell1_20609', 1, 1)
end
end

function mob20609_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20609', math.random(1500, 3000), 1)
end

function mob20609_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20609_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20609_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20609, 1, 'mob20609_Action')
RegisterUnitEvent(20609, 2, 'mob20609_Leave')
RegisterUnitEvent(20609, 3, 'mob20609_Kill')
RegisterUnitEvent(20609, 4, 'mob20609_Die')
